package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("resource")
public class Resource extends Model<Resource> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，资源id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 资源编码
     */
    private String code;

    /**
     * 资源名称
     */
    private String resourceName;

    /**
     * 资源类型
     */
    private String resourceType;

    /**
     * 菜单id
     */
    private String menuId;

    /**
     * 资源描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime cjsj;

    /**
     * 修改时间
     */
    private LocalDateTime xgsj;

    /**
     * 系统ID
     */
    private String systemId;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String RESOURCE_NAME = "resource_name";

    public static final String RESOURCE_TYPE = "resource_type";

    public static final String MENU_ID = "menu_id";

    public static final String DESCRIPTION = "description";

    public static final String CJSJ = "cjsj";

    public static final String XGSJ = "xgsj";

    public static final String SYSTEM_ID = "system_id";



}
